﻿@model EM.OA.Portal.Models.WorkLogModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/DailyWork/WorkLog.js"></script>
<div>
    @*   <div class="easyui-layout" style="height: 500px; overflow: hidden;">
        <div data-options="region:'west',split:true,title:'工作日志'" style="width: 150px; padding: 10px;">
            <ul id="tree" class="easyui-tree">
            </ul>
        </div>
        <div data-options="region:'center',title:''">*@
    @*list*@
    <table id="list" class="easyui-datagrid" toolbar="#toolbar">
    </table>
    @*     </div>
    </div>*@
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
        @*<div id="tb" style="padding: 3px">
            <span>@Html.LabelFor(m => m.WorkPlanName)</span>
            <input id="WorkPlanName" style="line-height: 26px; border: 1px solid #ccc">
            <span>@Html.LabelFor(m => m.WorkPlanType)</span>
            <input id="WorkPlanType" style="line-height: 26px; border: 1px solid #ccc">
            <a href="#" class="easyui-linkbutton" plain="true" onclick="doSearch()">Search</a>
        </div>*@
    </div>

    @*Detail*@
    <div id="dlg" class="easyui-dialog" style="width: 800px; height: 500px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true">
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.WorkLogID)
            <div>
                @Html.LabelFor(m => m.WorkRecord)
                <textarea name="WorkRecord" style="width: 700px; height: 300px;" required="true" class="easyui-validatebox"></textarea>
            </div>
            <div>
                @Html.LabelFor(m => m.WorkSummary)
                <textarea name="WorkSummary" style="width: 700px; height: 300px;" class="easyui-validatebox"></textarea>
            </div>
            <div>
                @Html.LabelFor(m => m.WorkLogDate)
                <input name="WorkLogDate" class="easyui-datebox" data-options="required:true" />
            </div>
            <div>
                @Html.LabelFor(m => m.HaveAttachment)
                <input type="checkbox" name="HaveAttachment" />
            </div>
        </form>
    </div>

</div>
